package com.kawa.kemanage.service.impl;

import com.kawa.kemanage.entity.NewsCategory;
import com.kawa.kemanage.mapper.CategoryMapper;
import com.kawa.kemanage.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<NewsCategory> queryCate() {
        return categoryMapper.queryAllCate();
    }
}
